const client = require('./client');
const config = require('./config');

// InstanceIds数组类型
module.exports = async function (InstanceIds) {
  console.log('queryInstanceDetail:', InstanceIds);
  const params = {
    RegionId: config.regionId,
    InstanceIds,
  };

  const requestOption = {
    method: 'POST',
  };

  return await client.request('DescribeInstances', params, requestOption);
};
